package com.jzbooks.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author mingPeng
 * @date 2021/5/3 22:57
 * @Description : 管理员实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("admin")
@ApiModel("管理员实体")
public class Admin extends BaseEntity{

    @ApiModelProperty("用户名")
    @TableField(value = "username")
    private String username;

    @ApiModelProperty("密码")
    @TableField(value = "password")
    private String password;

    @ApiModelProperty("姓名")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty("性别，0男，1女")
    @TableField(value = "sex")
    private Byte sex;

    @ApiModelProperty("手机号")
    @TableField(value = "phone_num")
    private Integer phoneNum;

    @ApiModelProperty("邮箱号")
    @TableField(value = "email")
    private String email;

    @ApiModelProperty("头像地址")
    @TableField(value = "img_src")
    private String imgSrc;

    public static final String COL_USERNAME = "username";

    public static final String COL_PASSWORD = "password";

    public static final String COL_NAME = "name";

    public static final String COL_SEX = "sex";

    public static final String COL_PHONE_NUM = "phone_num";

    public static final String COL_EMAIL = "email";

    public static final String COL_IMG_SRC = "img_src";

}
